package com.gitee.cashzhang27.test.boot.functional.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Redisson 集群模式属性.
 *
 * @author Cash Zhang
 * @version v1.0 2020/09/17 17:25
 * @since v1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ConfigurationProperties(prefix = "spring.redis.redisson.cluster")
public class RedissonClusterServerProperties extends RedissonBaseMasterSlaveServerProperties {

  /**
   * 集群扫描间隔时间，单位：毫秒.
   * 默认值：1秒
   */
  private int scanInterval = 1000;

  /**
   * 在Redisson启动期间启用集群插槽检查.
   */
  private boolean checkSlotsCoverage = true;

}
